<?php $s = microtime(true);?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Question & Answer Social Network</title>

<?php
	echo $this->headLink ()
			->appendStylesheet ( $this->baseUrl ('public/css/reset.css'))
			->appendStylesheet ( $this->baseUrl ('public/css/style.css'))
			->appendStylesheet ( $this->baseUrl ('public/css/getlink.css'))
			->appendStylesheet ( $this->baseUrl ('public/js/jquery.wysiwyg.css'))

			->appendStylesheet ( $this->baseUrl ('public/css/comfirmdelete.css'))

			->appendStylesheet ( $this->baseUrl ('public/css/lightbox.min.css'))
			->appendStylesheet ( $this->baseUrl ('public/images/themes/start/jquery-ui-1.8.16.custom.css'))
			
			//->appendStylesheet ( $this->baseUrl ('public/css/scroll.css'))
			;
			

	echo $this->headScript ()
			->appendFile ( $this->baseUrl ( '/public/js/config.js' ) )
 			->appendFile ( $this->baseUrl ( 'public/js/jquery.1.7.2.min.js' ) )
			
			->appendFile ( $this->baseUrl ( '/public/js/aj.js' ) )
			->appendFile ( $this->baseUrl ( '/public/js/user.js' ) )
 			->appendFile ( $this->baseUrl ( 'public/js/jquery.wysiwyg.js' ) )
			->appendFile ( $this->baseUrl ( 'public/js/quickmenu.js' ) )
			->appendFile ( $this->baseUrl ( '/public/js/getlink.js' ) )
			->appendFile ( $this->baseUrl ( '/public/js/getlink_trangthai.js' ) )
			->appendFile ( $this->baseUrl ( '/public/js/comment.js' ) )
			
			->appendFile ( $this->baseUrl ( '/public/js/lightbox/jquery.ui.core.min.js' ) )
			->appendFile ( $this->baseUrl ( '/public/js/lightbox/jquery.ui.widget.min.js' ) )
			->appendFile ( $this->baseUrl ( '/public/js/lightbox/jquery.ui.rlightbox.js' ) )
			
			//->appendFile ( $this->baseUrl ( '/public/js/jquery.tinyscrollbar.min.js' ) )
			->appendFile ( $this->baseUrl ( '/public/js/main.js' ) )

			;
		
?>
<!--
    <script type="text/javascript">      
        Event.addBehavior({

          'a.popup': Popup.TriggerBehavior({
            reload: true     // reload Ajax popups on second click
          })
        });       		
    </script> 
-->
  </head>
  <body>
    <?php echo $this->render('_header.phtml')?>
	<div id="" class="wrapper">
	<?php echo $this->layout()->content; ?>	
	</div>
	<?php echo $this->render('_footer.phtml')?>
    
</body>
</html>

<?php
//TODO: microtime
	$e = microtime(true);
	// echo $e - $s;
	echo $e."-".$s."=".substr(($e - $s),0,5). " seconds";
?>